<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>中等大小轮播</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/swiper-bundle.min.css">
    <script src="../js/swiper-bundle.min.js"></script>
    <script>
        $(function () {
            var mySwiper = new Swiper('.carousel_single', {
                autoplay: true,
                loop: true,
                slideClass: 'carousel_single_slide',
                navigation: {
                    nextEl: '.carousel_single_nav_next',
                    prevEl: '.carousel_single_nav_prev',
                },
            })
        })
    </script>
    <style>
        .carousel_single_bg {
            width: 100%;
            object-fit: cover;
            max-height: 485px;
        }

        .carousel_single_navigation {
            position: absolute;
            top: 40%;
            width: 100%;
            z-index: 15;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .carousel_single_navigation span {
            display: block;
            width: 60px;
            height: 60px;
            border-radius: 5px;
            background-image: url(../images/carousel_left.png);
            background-color: rgba(0, 0, 0, 0.1);
            background-size: 70% 70%;
            background-position: 50%;
            background-repeat: no-repeat;
        }

        .carousel_single_navigation span:last-child {
            background-image: url(../images/carousel_right.png);
        }

        @media (max-width:500px) {
            .carousel_single_navigation span {
                width: 40px;
                height: 40px;
            }
        }
    </style>
</head>

<body>
    <div class="carousel carousel_single swiper-container modular">
        <ul class="swiper-wrapper">
            <li class="swiper-slide carousel_single_slide">
                <img class="carousel_single_bg"
                    src="https://22457864.s61i.faiusr.com/2/AD0IiNzaChACGAAg3vGX8wUoh6e6rQcw8gw4oAY.jpg.webp" alt="">
            </li>
            <li class="swiper-slide carousel_single_slide">
                <img class="carousel_single_bg"
                    src="https://22457864.s61i.faiusr.com/2/AD0IiNzaChACGAAg7ciX8wUol9WL_AYw8gw4oAY.jpg.webp" alt="">
            </li>
            <li class="swiper-slide carousel_single_slide">
                <img class="carousel_single_bg"
                    src="https://22457864.s61i.faiusr.com/2/AD0IiNzaChACGAAg7siX8wUooI6NqgYw8gw4oAY.jpg.webp" alt="">
            </li>
        </ul>
        <div class="carousel_single_navigation">
            <span class="carousel_single_nav_prev"></span>
            <span class="carousel_single_nav_next"></span>
        </div>
    </div>
</body>

</html>